package com.museum.impl;

import com.alibaba.fastjson.JSONObject;
import com.museum.base.BaseResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
@Api("sendSMS")
public interface SMSService {
    /**
     * 短信发送服务
     *
     * @return
     */
    @PostMapping("/sendSms")
    @ApiOperation("发送短信")
    BaseResponse<JSONObject> sendSms(@RequestParam("phone") String phone);

    /**
     * 短信验证服务
     *
     * @return
     */
    @PostMapping("/checkSms")
    @ApiOperation("短信验证服务")
    BaseResponse<JSONObject> checkSms(@RequestParam("phone") String phone
            , @RequestParam("code") String code);
}
